package com.gistone.commis.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;

/**
 * Created by wangfan on 2017/5/8.
 */
@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Person {
    private Integer personId;

    private Integer communityId;

    private Community community;

    private Integer departId;
    private Depart depart;

    private Integer userId;
    private User user;

    private String personName;

    private String personPolitica;

    private String nationality;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date sWorkDate;

    private String householdAddr;

    private String liveAddr;

    private String familyPhone;

    private String mobilePhone;

    private String cardCode;

    private String icetuCode;

    private Integer ccId;
    private PersonCc personCc;

    private Integer positionId;
    private PositionType positionType;

    private String enlistType;

    private Integer isIntern;

    private Integer isDszn;

    private String liveCommunity;

    private String liveAvenue;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date registerTime;

    private Integer isDelete;

    private Integer number;

    private String sex;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    private String education;
    @JsonFormat(pattern = "yyyy-MM")
    private Date dsznDeadline;

    private Double zwnxbt;

    private Double pension;

    private Double medicare;

    private Double unemployment;

    private Double providentFund;

    private Double incomeTax;

    private Double backPay;

    private Double supPf;

    private Double supI;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date ccDate;

    private Integer field1;
    private Date leavedate;

    private Integer leaveStatus;



    public Person(Integer personId, Integer communityId, Integer departId, Integer userId, String personName, String personPolitica, String nationality, Date sWorkDate, String householdAddr, String liveAddr, String familyPhone, String mobilePhone, String cardCode, String icetuCode, Integer ccId, Integer positionId, String enlistType, Integer isIntern, Integer isDszn, String liveCommunity, String liveAvenue, Date registerTime, Integer isDelete, Integer number, String sex, Date birthday, String education, Date dsznDeadline, Double zwnxbt, Double pension, Double medicare, Double unemployment, Double providentFund, Double incomeTax, Double backPay, Double supPf, Double supI, Date ccDate, Integer field1, Date leavedate, Integer leaveStatus) {
        this.personId = personId;
        this.communityId = communityId;
        this.departId = departId;
        this.userId = userId;
        this.personName = personName;
        this.personPolitica = personPolitica;
        this.nationality = nationality;
        this.sWorkDate = sWorkDate;
        this.householdAddr = householdAddr;
        this.liveAddr = liveAddr;
        this.familyPhone = familyPhone;
        this.mobilePhone = mobilePhone;
        this.cardCode = cardCode;
        this.icetuCode = icetuCode;
        this.ccId = ccId;
        this.positionId = positionId;
        this.enlistType = enlistType;
        this.isIntern = isIntern;
        this.isDszn = isDszn;
        this.liveCommunity = liveCommunity;
        this.liveAvenue = liveAvenue;
        this.registerTime = registerTime;
        this.isDelete = isDelete;
        this.number = number;
        this.sex = sex;
        this.birthday = birthday;
        this.education = education;
        this.dsznDeadline = dsznDeadline;
        this.zwnxbt = zwnxbt;
        this.pension = pension;
        this.medicare = medicare;
        this.unemployment = unemployment;
        this.providentFund = providentFund;
        this.incomeTax = incomeTax;
        this.backPay = backPay;
        this.supPf = supPf;
        this.supI = supI;
        this.ccDate = ccDate;
        this.field1 = field1;
        this.leavedate = leavedate;
        this.leaveStatus = leaveStatus;
    }


}